<%@ page import="com.zjh.pojo.Book" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/5/2
  Time: 16:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>

<%
    for (Cookie cookie : request.getCookies()) {
        if (cookie.getName().equals("user")) {
            out.println("<h3>欢迎您，" + cookie.getValue() + "</h3>");
        }
    }

//    User user = (User) session.getAttribute("user");
//    out.println("<h3>欢迎您，" + user.getUsername() + "</h3>");
%>

</body>
</html>
